#include "deadlinetimerpool.h"
#include <boost/bind.hpp>

DeadlineTimerPool::DeadlineTimerPool()
{

}

DeadlineTimerPool::~DeadlineTimerPool()
{

}

DeadlineTimerPool::TimerPtr DeadlineTimerPool::alloc(Service &service)
{
    TimerPtr _new(m_pool.construct(service), boost::bind(&DeadlineTimerPool::destroy, this, _1));

    return _new;
}

void DeadlineTimerPool::destroy(Timer *p)
{
    m_pool.destroy(p);
}
